feat: add pre-commit hooks with lint-staged#162
Merged
OttoAllmendinger merged 3 commits intomasterfrom Feb 13, 2026
Merged
Conversation
Set up Husky pre-commit hooks with lint-staged configuration to automatically run formatting and linting on staged files before commits. This ensures code quality by running: - Prettier and ESLint on JS/TS files - Cargo fmt and clippy on Rust files Updated README with developer setup instructions. Issue: BTC-2650 Co-authored-by: llm-git <llm-git@ttll.de>
Add Rust linting configuration to check for unexpected cfg conditions from dependencies. Fix multiple clippy warnings including: - Replace map().unwrap_or(false) with simpler expressions - Use *cached instead of clone() for XpubTriple - Use x_only_public_key() instead of to_inner() - Simplify control flow with div_ceil() and find() - Avoid unnecessary cloning with tap_script_sigs.insert(*key, *sig) - Add #[allow(clippy::too_many_arguments)] where appropriate Issue: BTC-2650 Co-authored-by: llm-git <llm-git@ttll.de>
Enable cargo clippy checks alongside formatting in the pre-commit hooks for Rust files. Checks are configured to treat warnings as errors for better code quality enforcement. Issue: BTC-2650 Co-authored-by: llm-git <llm-git@ttll.de>
f16ea27 to
2505123
Compare
davidkaplanbitgo
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set up Husky pre-commit hooks with lint-staged configuration to
automatically run formatting and linting on staged files before
commits. This ensures code quality by running:
Updated README with developer setup instructions.
BTC-2650